const App = getApp()
const httpRequest=require('../../utils/httpRequest.js')

Page({
  data: {
    sortOptions: '综合',
    hotOptions: '热度',
    distanceOptions: '距离',
    comprehensiveOptions: '价格',
    cinemas: [],
    imgList:[],
    Token:''
  },

  onLoad() {
    const userToken = wx.getStorageSync('userToken'); 
    this.setData({
      Token:userToken
    });
    this.getCinemaData();
    this.getImg3();
  },
  //获取swiper视频信息
  getImg3(){
    httpRequest.Request('GET',App.globalData.backend_add+'api/getImg3',{},{'Authorization': this.data.Token},'imgList','null',this)
  },
  //获取影院信息
  getCinemaData() {
    httpRequest.Request('POST',App.globalData.backend_add+'api/cinemas?longitude='+118.072243442373+'&latitude='+24.6078449008795 
    ,{},{'Authorization': this.data.Token},'cinemas','null',this)
  },

});